package bean;

import java.util.HashSet;

public class Worker {
    private String name;
    private String location;
    private HashSet<String> skills;
    private double payoff;
    private int capacity;

    public Worker() {
    }

    public Worker(String name,HashSet<String> skills, double payoff, int capacity) {
        this.name = name;
        this.skills = skills;
        this.payoff = payoff;
        this.capacity = capacity;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public HashSet<String> getSkills() {
        return skills;
    }

    public void setSkills(HashSet<String> skills) {
        this.skills = skills;
    }

    public double getPayoff() {
        return payoff;
    }

    public void setPayoff(double payoff) {
        this.payoff = payoff;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "name='" + name + '\'' +
                ", skills=" + skills +
                ", payoff=" + payoff +
                ", capacity=" + capacity +
                '}';
    }
}
